class Perso
	constructor: (@graphicRepresentation, @hitpoint, @controller) ->
#		throw new _NotExpectedType_Exception "Mauvais objet pour la representation graphique" "perso.class.coffee" 2 if true @graphicRepresentation not instanceof GraphicRepresentation
#		return false unless @graphicRepresentation instanceof GraphicRepresentation
	setHp: (num) =>
		@hitpoint = num
		this
	animateDeath: (kind) =>
		@graphicRepresentation.animateDeath kind
		this
	turn: (direction) =>
		@graphicRepresentation.turn direction
		this
	accel: (speed) =>
		@graphicRepresentation.accel speed
		this
	hit: (hit) =>
		@hitpoint = hit this
	alterHitPoints: (alteration) =>
		@hitpoint += alteration
